<link rel="stylesheet" href="../static/style.css" type="text/css">
{% block body %}
    {% if session['logged_in'] %}
        <p>你已登录成功</p>
    {% else %}
        <form action="/login" method="POST">
         <h4 class="app-title" style="color:red"> {{get_flashed_messages()[0]}}</h4>
            <div class="login">
                <div class="login-screen">
                    <div class="app-title">
                        <h2 class="title">TheOne</h2>
                        <h6 class="title">我是小One，欢迎你的登录</h6>
                    </div>

                    <div class="login-form">
                        <div class="control-group">
                            <input type="text" class="login-field" value="" placeholder="telephone" name="accountId">
                            <label for="login-name" class="login-field-icon fui-user"></label>
                        </div>

                        <div class="control-group">
                            <input type="password" class="login-field" value="" placeholder="password" name="password">
                            <label for="login-pass" class="login-field-icon fui-lock"></label>
                        </div>

                        <input type="submit" value="登录" class="btn btn-primary btn-Large btn-block">
                        <br>
                        <a href="{{ url_for('register')}}" class="register-link">注册</a>
                    </div>
                </div>
            </div>
        </form>

    {% endif %}
{% endblock %}